<div class="box"><!-- Box begins here -->
<h2>Danh sách Tags bài viết | <a class="add"
	href="<?php echo $this->url(array("module"=>"administrator","controller"=>"tag","action"=>"add"),null,true); ?>">Thêm</a></h2>
	<?php echo $this->paginationControl($this->data,"Sliding","pagination.phtml");  ?>
<table>
	<thead>
		<tr>
			<td>Id</td>
			<td>Tag Name</td>
			<td>Thao Tác</td>
		</tr>
	</thead>
	<tbody>
			<?php
				if(!empty($this->data)): 
			?>
			<?php foreach($this->data as $item): ?>
			<tr class="">
				<td><?php echo $item['id']; ?></td>
				<td><?php echo $item['name']; ?></td>
				<td>
					<a class="delete" href="<?php echo $this->url(array("module"=>"administrator","controller"=>"tag","action"=>"remove","id"=>$item['id']),null,true);?>">Xóa</a>
					<a class="delete" href="<?php echo $this->url(array("module"=>"administrator","controller"=>"tag","action"=>"edit","id"=>$item['id']),null,true);?>">Sửa</a>
					<a class="delete" href="<?php echo $this->url(array("module"=>"administrator","controller"=>"tag","action"=>"edit","id"=>$item['id']),null,true);?>">Bài viết trong tag</a>
				</td>
			</tr>
		     <?php endforeach; ?>
			 <?php else :?>
			<tr>
				<td>Chưa Có Bài Viết Nao</td>
			</tr>
			 <?php endif; ?>
	</tbody>
</table>
<?php echo $this->paginationControl($this->data,"Sliding","pagination.phtml");  ?>
</div>